<template>
	<view class="app" style="padding: 40rpx;background-color: #FFFFFF;">
		<rich-text :nodes="data.config_value" class="rich-text"></rich-text>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				data:"",
				type: ''
			}
		},
		methods:{
			gotoPage(path){
				uni.navigateTo({ url: path });
			},
		},
		onLoad(options) {
			this.type = options.type
			
			this.$u.api.index.getDocument({type: this.type}).then(res => {
				this.data = res.data 
				
				uni.setNavigationBarTitle({
					title: this.data.config_note
				})
			})
		},
	}
</script>

<style>
	.rich-text{line-height: 2;color: #000000;}
</style>